特急------->如何用CMD改IP

来源:百度知道 编辑:UC知道 时间:2024/05/10 09:16:07
我想让电脑8:00-20:00可以上网
其它时间不可以
就想到用CMD做个计划任务
到时间自动运行CMD设置一下网关和IP
但我不会写命令
哪位达人帮帮忙
先送上50分
如果经实验可用,再追加分..
忘了说
我是在公司用
路由器
到时候只让一台机器改IP
就是为了便于管理

秀才zoumorn
interface ip set add \"本地连接\" 可以帮我解释一下吗

更改ip地址的方法,

C:\>ipconfig (首先用ipconfig这个命令看一下更改之前的ip地址)

Windows 2000 IP Configuration

Ethernet adapter 本地连接:

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 10.1.1.94 (本地连接更改之前的ip)

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 10.1.1.254

C:\>netsh (进入设置模式)

netsh>interface

interface>ip

interface ip>set address "本地连接" static 10.1.1.111 255.255.255.0 10.1.1.254

interface ip>exit

上文中的set命令具体解释如下:

set address - 设置指定的接口的 IP 地址和默认网关。

set dns - 设置 DNS 服务器模式和地址。

set wins - 设置 WINS 服务器模式和地址。

C:\>ipconfig (更改后再用ipconfig命令看一下,确认一下是否更改成功)

Windows 2000 IP Configuration

Ethernet adapter 本地连接:

Connection-specific DNS Suffix . :

IP Address. . . . . .